package org.six11.ss.client;

import java.awt.Color;
import java.awt.Font;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import javax.swing.JLabel;
import javax.swing.JPanel;

import org.six11.util.Debug;
import org.six11.util.adt.MultiState;
import org.six11.util.gui.InfoTextBox;

/**
 * 
 *
 * @author Gabe Johnson <johnsogg@cmu.edu>
 */
public class WarnPanel extends JPanel {

  private MultiState state;
  private InfoTextBox messageLabel;

  /**
   * @param multiState
   */
  public WarnPanel (MultiState multiState) {
    this.state = multiState;
    setBackground(Color.WHITE);
    messageLabel = new InfoTextBox();
    Font f = messageLabel.getFont();
    messageLabel.setFont(new Font(f.getFontName(), f.getStyle(), 20));
    add(messageLabel);
    messageLabel.append(Color.RED, "A new round is starting in a few seconds!");
  }
  
  private static void bug(String what) {
    Debug.out("WarnPanel", what);
  }
  
}
